package com.manning.readinglist.dao;

import com.manning.readinglist.entity.Book;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 *
 * @author tuliang
 */
public interface IBookRepository extends JpaRepository<Book,Long> {
    /**
     * 通过reader查询数目
     * @param reader reader
     * @return List
     *
     */
    List<Book> findByReader(String reader);
}
